
package cn.edu.scau.cmi.front.service;

import java.util.Calendar;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import cn.edu.scau.cmi.ema.domain.Additive;
import cn.edu.scau.cmi.ema.domain.Additiveaddress;
import cn.edu.scau.cmi.ema.domain.Address;
import cn.edu.scau.cmi.ema.domain.Event;
import cn.edu.scau.cmi.ema.domain.Feature;
import cn.edu.scau.cmi.ema.domain.Picture;
import cn.edu.scau.cmi.ema.domain.Unit;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;

/**
 * Spring service that handles CRUD requests for Additiveaddress entities
 * 
 */
public interface FrontService {
	
	

	
	
	boolean saveUploadFiles(List<MultipartFile> files, String imageUploadDirectory, String string);

	Set<Picture> getNewestEventsReprestativePictures(int i);
	//暂时放在，其实不需要
//	void getFrontIndexObjects(List<Calendar> dates, Set<Picture> pictures, Set<Event> unsortedEventSet);

	Map getRepresentativePictureOfEvents(LinkedHashSet<Event> events);

	
	public Integer countKnowledgeItems(CmiPagination page);
	
	
	public Set<Object> getRecordsForKnowledgeBase(CmiPagination page);
	
	public Set<String> getKnowledgeBaseBasicAttributes();
	
	public Integer countKnowledgeItemsByFeature(CmiPagination page,String sqlString);
	
	
	public Set<Object> getRecordsForKnowledgeBaseByFeature(CmiPagination page,String sqlString);
//	获取事件的网站展示的图片
	Picture getRepresentativePictureOfEvent(Event event);

	public Set<Picture> getExhibinatePictures(int needExhibinationPicutreQuantity,int foodtype);

	public Set<Picture> getExhibinatePictures(int needExhibinationPicutreQuantity,Set<Integer> foodtypeIds);
	
	
	
}